//
//  TestProblem1984.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/25.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem1984: XCTestCase {

    var problem = Problem1984()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem1984_Case1() throws {
        XCTAssertEqual(problem.minimumDifference([90], 1), 0)
    }
    
    func testProblem1984_Case2() throws {
        XCTAssertEqual(problem.minimumDifference([9,4,1,7], 2), 2)
    }
}
